home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
msqc25t1
/
hilite.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-28
|
1KB
|
39 lines
/* HILITE.C: Highlighting a line within a pop-up */
#include <conio.h>
#include <graph.h>
#include "popup.h"
#include "textscrn.h"
POPUP pop = {8, 30, 12, 50, 2, GREEN, BLACK, BLACK, GREEN, 0};
main()
{
_savescrn (0); /* save entry screen */
_displaycursor (_GCURSOROFF);
popShow (&pop); /* pop up */
/* Write original message */
popCenter (&pop, 2, "Press any key"); /* write */
popCenter (&pop, 4, "to highlight...");
getch(); /* wait for keypress */
/* Change second line and hilite */
_settextposition (4, 1); _cleareol();
popCenter (&pop, 4, "to restore...");
popHilite (&pop, 4);
getch(); /* wait for keypress */
/* Change second line and restore normal colors */
_settextposition (4, 1); _cleareol();
popCenter (&pop, 4, "to quit...");
popNormal (&pop, 4);
getch(); /* wait for keypress */
/* Erase popup and quit */
_displaycursor (_GCURSOROFF);
_restscrn (0); /* restore entry screen */
}